package com.zz.ecommerce.common.bean.qdc.xml.declform;

import javax.xml.bind.annotation.XmlAccessType;
import javax.xml.bind.annotation.XmlAccessorType;
import javax.xml.bind.annotation.XmlElement;
import javax.xml.bind.annotation.XmlType;
import java.util.ArrayList;
import java.util.List;

/**
 * <p>Java class for anonymous complex type.
 * <p/>
 * <p>The following schema fragment specifies the expected content contained within this class.
 * <p/>
 * <pre>
 * &lt;complexType>
 *   &lt;complexContent>
 *     &lt;restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
 *       &lt;sequence>
 *         &lt;element name="DECLFORM_HEAD">
 *           &lt;complexType>
 *             &lt;complexContent>
 *               &lt;restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
 *                 &lt;sequence>
 *                   &lt;element name="WAYBILL_ID" type="{http://www.w3.org/2001/XMLSchema}string"/>
 *                   &lt;element name="IE_FLAG" type="{http://www.w3.org/2001/XMLSchema}string"/>
 *                   &lt;element name="TRADE_MODE" type="{http://www.w3.org/2001/XMLSchema}string"/>
 *                   &lt;element name="RETURN_FLAG" type="{http://www.w3.org/2001/XMLSchema}string"/>
 *                   &lt;element name="REL_SEQ_NO" type="{http://www.w3.org/2001/XMLSchema}string"/>
 *                   &lt;element name="REL_WAYBILL_ID" type="{http://www.w3.org/2001/XMLSchema}string"/>
 *                   &lt;element name="REL_LOGI_ENTECODE" type="{http://www.w3.org/2001/XMLSchema}string"/>
 *                   &lt;element name="PACK_ID" type="{http://www.w3.org/2001/XMLSchema}string"/>
 *                   &lt;element name="DECL_PORT" type="{http://www.w3.org/2001/XMLSchema}string"/>
 *                   &lt;element name="IE_PORT" type="{http://www.w3.org/2001/XMLSchema}string"/>
 *                   &lt;element name="IE_DATE" type="{http://www.w3.org/2001/XMLSchema}string"/>
 *                   &lt;element name="MANUAL_NO" type="{http://www.w3.org/2001/XMLSchema}string"/>
 *                   &lt;element name="OWNER_CERT_TYPE" type="{http://www.w3.org/2001/XMLSchema}string"/>
 *                   &lt;element name="OWNER_CERT_ID" type="{http://www.w3.org/2001/XMLSchema}string"/>
 *                   &lt;element name="OWNER_NAME" type="{http://www.w3.org/2001/XMLSchema}string"/>
 *                   &lt;element name="OWNER_ADDR" type="{http://www.w3.org/2001/XMLSchema}string"/>
 *                   &lt;element name="OWNER_TEL" type="{http://www.w3.org/2001/XMLSchema}string"/>
 *                   &lt;element name="TRADE_CODE" type="{http://www.w3.org/2001/XMLSchema}string"/>
 *                   &lt;element name="TRADE_NAME" type="{http://www.w3.org/2001/XMLSchema}string"/>
 *                   &lt;element name="AGENT_CODE" type="{http://www.w3.org/2001/XMLSchema}string"/>
 *                   &lt;element name="AGENT_NAME" type="{http://www.w3.org/2001/XMLSchema}string"/>
 *                   &lt;element name="TRAF_MODE" type="{http://www.w3.org/2001/XMLSchema}string"/>
 *                   &lt;element name="TRAF_NAME" type="{http://www.w3.org/2001/XMLSchema}string"/>
 *                   &lt;element name="VOYAGE_NO" type="{http://www.w3.org/2001/XMLSchema}string"/>
 *                   &lt;element name="BILL_NO" type="{http://www.w3.org/2001/XMLSchema}string"/>
 *                   &lt;element name="TRADE_COUNT" type="{http://www.w3.org/2001/XMLSchema}string"/>
 *                   &lt;element name="TRANS_TOTAL_PRICE" type="{http://www.w3.org/2001/XMLSchema}decimal"/>
 *                   &lt;element name="GROSS_WEIGHT" type="{http://www.w3.org/2001/XMLSchema}decimal"/>
 *                   &lt;element name="PACK_NUM" type="{http://www.w3.org/2001/XMLSchema}int"/>
 *                   &lt;element name="CURR_CODE" type="{http://www.w3.org/2001/XMLSchema}string"/>
 *                   &lt;element name="EB_CODE" type="{http://www.w3.org/2001/XMLSchema}string"/>
 *                   &lt;element name="EB_NAME" type="{http://www.w3.org/2001/XMLSchema}string"/>
 *                   &lt;element name="EB_PLAT_ID" type="{http://www.w3.org/2001/XMLSchema}string"/>
 *                   &lt;element name="EB_PLAT_NAME" type="{http://www.w3.org/2001/XMLSchema}string"/>
 *                   &lt;element name="LOGI_ENTE_CODE" type="{http://www.w3.org/2001/XMLSchema}string"/>
 *                   &lt;element name="LOGI_ENTE_NAME" type="{http://www.w3.org/2001/XMLSchema}string"/>
 *                   &lt;element name="PAYCOP_GB_CODE" type="{http://www.w3.org/2001/XMLSchema}string"/>
 *                   &lt;element name="PAYCOP_NAME" type="{http://www.w3.org/2001/XMLSchema}string"/>
 *                   &lt;element name="NOTE" type="{http://www.w3.org/2001/XMLSchema}string"/>
 *                   &lt;element name="SUPER_PLACE_CODE" type="{http://www.w3.org/2001/XMLSchema}string"/>
 *                   &lt;element name="SUPER_PLACE_NAME" type="{http://www.w3.org/2001/XMLSchema}string"/>
 *                   &lt;element name="EXPRESS_COP_CODE" type="{http://www.w3.org/2001/XMLSchema}string"/>
 *                   &lt;element name="EXPRESS_COP_NAME" type="{http://www.w3.org/2001/XMLSchema}string"/>
 *                 &lt;/sequence>
 *               &lt;/restriction>
 *             &lt;/complexContent>
 *           &lt;/complexType>
 *         &lt;/element>
 *         &lt;element name="GOODS_LIST">
 *           &lt;complexType>
 *             &lt;complexContent>
 *               &lt;restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
 *                 &lt;sequence>
 *                   &lt;element name="G_NO" type="{http://www.w3.org/2001/XMLSchema}int"/>
 *                   &lt;element name="CODE_TS" type="{http://www.w3.org/2001/XMLSchema}string"/>
 *                   &lt;element name="G_NAME" type="{http://www.w3.org/2001/XMLSchema}string"/>
 *                   &lt;element name="G_MODEL" type="{http://www.w3.org/2001/XMLSchema}string"/>
 *                   &lt;element name="G_DESC" type="{http://www.w3.org/2001/XMLSchema}string"/>
 *                   &lt;element name="G_NUM" type="{http://www.w3.org/2001/XMLSchema}int"/>
 *                   &lt;element name="G_UNIT" type="{http://www.w3.org/2001/XMLSchema}string"/>
 *                   &lt;element name="PRICE" type="{http://www.w3.org/2001/XMLSchema}decimal"/>
 *                   &lt;element name="CURR_CODE" type="{http://www.w3.org/2001/XMLSchema}string"/>
 *                   &lt;element name="QTY_1" type="{http://www.w3.org/2001/XMLSchema}decimal"/>
 *                   &lt;element name="UNIT_1" type="{http://www.w3.org/2001/XMLSchema}string"/>
 *                   &lt;element name="TRADE_MARK" type="{http://www.w3.org/2001/XMLSchema}string"/>
 *                   &lt;element name="ORIGIN_COUNTRY" type="{http://www.w3.org/2001/XMLSchema}string"/>
 *                   &lt;element name="USE_TO" type="{http://www.w3.org/2001/XMLSchema}string"/>
 *                   &lt;element name="DUTY_MODE" type="{http://www.w3.org/2001/XMLSchema}string"/>
 *                   &lt;element name="TAX_PAYMENT" type="{http://www.w3.org/2001/XMLSchema}decimal"/>
 *                   &lt;element name="TAX_RATE" type="{http://www.w3.org/2001/XMLSchema}decimal"/>
 *                   &lt;element name="NOTE" type="{http://www.w3.org/2001/XMLSchema}string"/>
 *                 &lt;/sequence>
 *               &lt;/restriction>
 *             &lt;/complexContent>
 *           &lt;/complexType>
 *         &lt;/element>
 *         &lt;element name="CONTAINER_LIST" maxOccurs="unbounded" minOccurs="0">
 *           &lt;complexType>
 *             &lt;complexContent>
 *               &lt;restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
 *                 &lt;sequence>
 *                   &lt;element name="CONTAINER_ID" type="{http://www.w3.org/2001/XMLSchema}string"/>
 *                   &lt;element name="CONTAINER_MD" type="{http://www.w3.org/2001/XMLSchema}string"/>
 *                   &lt;element name="NOTE" type="{http://www.w3.org/2001/XMLSchema}string"/>
 *                 &lt;/sequence>
 *               &lt;/restriction>
 *             &lt;/complexContent>
 *           &lt;/complexType>
 *         &lt;/element>
 *       &lt;/sequence>
 *     &lt;/restriction>
 *   &lt;/complexContent>
 * &lt;/complexType>
 * </pre>
 */
@XmlAccessorType(XmlAccessType.FIELD)
@XmlType(name = "", propOrder = {
    "declformHead",
    "goodsList",
    "containerList"
})
public class GMDataSet {

    @XmlElement(name = "DECLFORM_HEAD", required = true)
    protected DeclformHead declformHead;
    @XmlElement(name = "GOODS_LIST", required = true)
    protected GoodsList goodsList;
    @XmlElement(name = "CONTAINER_LIST")
    protected List<ContainerList> containerList;

    /**
     * Gets the value of the declformhead property.
     *
     * @return possible object is
     * {@link DeclformHead }
     */
    public DeclformHead getDECLFORMHEAD() {
        return declformHead;
    }

    /**
     * Sets the value of the declformhead property.
     *
     * @param value allowed object is
     *              {@link DeclformHead }
     */
    public void setDECLFORMHEAD(DeclformHead value) {
        this.declformHead = value;
    }

    /**
     * Gets the value of the goodslist property.
     *
     * @return possible object is
     * {@link GoodsList }
     */
    public GoodsList getGOODSLIST() {
        return goodsList;
    }

    /**
     * Sets the value of the goodslist property.
     *
     * @param value allowed object is
     *              {@link GoodsList }
     */
    public void setGOODSLIST(GoodsList value) {
        this.goodsList = value;
    }

    /**
     * Gets the value of the containerlist property.
     * <p/>
     * <p/>
     * This accessor method returns a reference to the live list,
     * not a snapshot. Therefore any modification you make to the
     * returned list will be present inside the JAXB object.
     * This is why there is not a <CODE>set</CODE> method for the containerlist property.
     * <p/>
     * <p/>
     * For example, to add a new item, do as follows:
     * <pre>
     *    getCONTAINERLIST().add(newItem);
     * </pre>
     * <p/>
     * <p/>
     * <p/>
     * Objects of the following type(s) are allowed in the list
     * {@link ContainerList }
     */
    public List<ContainerList> getCONTAINERLIST() {
        if (containerList == null) {
            containerList = new ArrayList<ContainerList>();
        }
        return this.containerList;
    }

    @Override
    public String toString() {
        return "GMDataSet{" +
               "declformHead=" + declformHead +
               ", goodsList=" + goodsList +
               ", containerList=" + containerList +
               '}';
    }
}
